package pub.tbc.rubbish.demo1.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pub.tbc.toolkit.Factory;

import java.util.Map;

/**
 * @author tbc on 2016/12/12 15:13:30.
 */
@RestController
@RequestMapping("demo1")
public class DemoController {

    @GetMapping("demo1")
    public Map<String, Object> demo1() {
        return Factory.asHashMap("k1", "v1");
    }
}
